import { Role } from "../../../../role/Role";
import { EffectRecovery } from "../../../scene/model/EffectRecovery";
import { ISkillReport } from "../../model/report/ISkillReport";

export class SkillAnimatorHitEffectRecovery {
    static play(isr: ISkillReport, target: Role, effect: EffectRecovery, onComplete: Function) {
        isr.skill.showEffectRecovery(target);
        this.bloodAni(isr, target, effect);
        onComplete();
    }

    //流血飘文字
    private static bloodAni(isr: ISkillReport, target: Role, effect: EffectRecovery) {
        isr.skill.showRecoveryNum(target, effect);
    }
}